#!/usr/bin/python
#Derek & Paddy
import unittest
from ChessBoard import *

class testState2str(unittest.TestCase):

  def setUp(self):
    """ 
    SetUp data used for tests
    """
    self.testBoard = ChessBoard()
   
  def testInit(self):
    """
    Test is not none 
    """
    self.assertTrue(self.testBoard is not None)

  def testBasic(self):
    """
    """
    self.testBoard.resetBoard()
    a = self.testBoard.state2str()

   
  def testBasic2(self):
    """
    """
    self.testBoard.resetBoard()
    a = self.testBoard.state2str()
    print a
    self.testBoard._white_king_castle = False
    b = self.testBoard.state2str()
    print b
    self.assertTrue(a == b)

if __name__ == "__main__":
  unittest.main()

